﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Singleton
{
    /// <summary>
    /// 构造函数只能是无参数的
    /// </summary>
    class SingletonOne
    {
        private readonly static SingletonOne _s = new SingletonOne();
        private SingletonOne() { }
        public static SingletonOne GetInstance()
        {
            return _s;
        }
    }
}
